
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="department.domain.Department, java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<jsp:useBean id="list" class="java.util.ArrayList" scope="request"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<h2>부서목록 </h2>
<table width="500">
<tr>
	<td>부서ID</td>
	<td>부서명</td>
	<td>지역</td>
	<td>삭제</td>
	<td>수정</td>
</tr>
<c:forEach items="${ list}" var="list">
	<tr> 
		<td>${list.departmentId }</td>
		<td>${list.departmentName }</td>
		<td>${list.location }</td>
		<td><a href="/MyDepartmentManager/RemoveDepartmentServlet?departmentId="${list.departmentId }>삭제</a></td>
		<td><a href="/MyDepartmentManager/ModifyDepartmentFormServlet?departmentId="${list.departmentId }>수정</a></td>
	</tr>
</c:forEach>
</table>
<a href="/MyDepartmentManager/index.html">메인페이지</a>
<a href="/MyDepartmentManager/register_form.html">부서 등록 폼</a><br>
</body>
</html>